﻿@model IEnumerable<AntDesigner.weiXinPay.RedPack>
@{
    Layout = "~/Views/Shared/_LayoutHaveManue.cshtml";
}
<style>
    td{
        text-align:center;
    }
</style>
<h2>红包发放</h2>
<a href="/Manage/Index/">返回</a><br />
共 @Model.Count() 个 总金额 @Model.Sum(m=>m.Amount)
成功 @Model.Where(m => m.Err_code == "SUCCESS").Count() 个 金额 @Model.Where(m => m.Err_code == "SUCCESS").Sum(m => m.Amount)
<div class="table-responsive">
    <table class="table table-striped">
        <tr>
            <th>时间</th>
            <th>金额</th>
            <th>状态</th>
            <th>玩家</th>
        </tr>
        @{
            foreach (var RedPack in Model)
            {
                <tr>
                    <td>@RedPack.Amount</td>
                    <td>@RedPack.CreateTime</td>
                    <td>@(RedPack.Err_code=="SUCCESS" ? "成功":"失败")</td>
                    <td>@RedPack.WeixinName</td>
                </tr>

            }
        }
    </table>
</div>